﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Scheduling.Models;
using Scheduling.Models.Interfaces;
using Scheduling.Models.Helpers;

namespace Scheduling.Models.Helpers
{
	public static class TestHelper
	{
        /// <summary>
        /// Resets the inMemoryclasses between every TestMethod. Is a bit a ugly hack but its only used in testing
        /// </summary>
        public static void init()
        {
            var userLoader = IoC.Resolve<IUserLoader>();
            var bookingLoader = IoC.Resolve<IBookingLoader>();
            var courseLoader = IoC.Resolve<ICourseLoader>();
            var roomLoader = IoC.Resolve<IRoomLoader>();
            userLoader.Clear();
            bookingLoader.Clear();
            courseLoader.Clear();
            roomLoader.Clear();
        }
	}
}